package com.efast.cafe.commponent.statemach.dao;

import org.apache.ibatis.annotations.Param;

import com.efast.cafe.commponent.statemach.bean.PortalStateMachResourceBean;

public interface PortalStateMachResourceDao {
	/**
	 * 新增资源
	 * 
	 * @param resource
	 */
	// @SaveOrUpdateOrDelControl
	void insertResource(PortalStateMachResourceBean resource);

	/**
	 * 编辑资源
	 * 
	 * @param resource
	 */
	// @SaveOrUpdateOrDelControl
	void updateResource(PortalStateMachResourceBean resource);

	/**
	 * 删除资源
	 * 
	 * @param resource
	 */
	// @SaveOrUpdateOrDelControl
	void deleteResource(PortalStateMachResourceBean resource);

	/**
	 * 锁定解锁资源
	 * 
	 * @param isLock
	 * @param taskId
	 */
	void lockResource(@Param(value = "isLock") Integer isLock, @Param(value = "taskId") Long taskId);

	/**
	 * 启用或者停用
	 * 
	 * @param ResourceTaskBean
	 */
	// @SaveOrUpdateOrDelControl
	public void startAndStop(PortalStateMachResourceBean ResourceTaskBean);

}
